package yu.zhou.njupt.importdataui.entity;

/**
 * @author yu.zhou
 *
 */
public class ImportResult {
    
    private boolean isSuccess; // 导入数据是否成功
    private int recordCount; // 导入的记录数
    private long elapsedTime; // 导入数据消耗的时间(单位：ms)
    
    public ImportResult(boolean isSuccess){
        this.isSuccess = isSuccess;
    }

    public ImportResult(boolean isSuccess, int recordCount, long elapsedTime){
        this.isSuccess = isSuccess;
        this.recordCount = recordCount;
        this.elapsedTime = elapsedTime;
    }
    
    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }
    
    public int getRecordCount() {
        return recordCount;
    }
    
    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }
    
    public long getElapsedTime() {
        return elapsedTime;
    }
    
    public void setElapsedTime(long elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

}
